<?php
/**
 * register.phtml
 * Element of BigAaWSystem.
 * Date: 20/03/13
 * Time: 13:00
 * Developed by Marek Kaszewski
 */
?>
<script>
    jQuery(document).ready(function($) {
        $.get("/ajax/localizationform", function( data ) {
            $( "#localization" ).html( data );
          //  alert( "Load was performed." );
        });
        $.get("/ajax/personalinfoform", function( data ) {
            $( "#personal" ).html( data );
        });
    });
</script>

<!-- Two Column (Equal) -->
<div class="two-column-equal">
    <div class="column-left">

        <!-- Grey Tabbed Block (Full Width) -->
        <div class="block block-grey">

            <!-- Block Header -->
            <div class="head">
                <div class="cap-left"></div>
                <div class="cap-right"></div>
                <div class="content">

                    <!-- Block Title -->
                    <h2><?php echo $this->translate('System settings');?></h2>
                    <!-- /Block Title -->

                </div>
                <div class="clear-both"></div>
            </div>
            <!-- /Block Header -->

            <!-- Block Content -->
            <div class="block-content">

                <!-- Tab Two -->
                <div id="tab-three-two">

                    <!-- Standard Form (Small) -->
                    <form action="<?php echo $this->url('passwordreminder');?>" method="post" class="standard-form standard-form-small">
                        <fieldset id="localization">
                            <legend><?php echo $this->translate('Localization');?></legend>

                            <div class="field" style="visibility: hidden">
                                <label for="field_1">&nbsp;</label>
                                <input type="text" name="language" id="field_1" class="textbox" value=""/>
                                <p class="field-help">&nbsp;</p>
                            </div>

                            <div class="field" style="visibility: hidden">
                                <label for="field_2">&nbsp;</label>
                                <input type="text" name="timezone" id="field_2" class="textbox" value=""/>
                                <p class="field-help">&nbsp;</p>
                            </div>

                            <div class="field" style="visibility: hidden">
                                <label for="field_3">&nbsp;</label>
                                <input type="text" name="dateformat" id="field_3" class="textbox" value=""/>
                                <p class="field-help">&nbsp;</p>
                            </div>

                            <div class="field" style="visibility: hidden">
                                <label for="field_3">&nbsp;</label>
                                <input type="text" name="timeformat" id="field_3" class="textbox" value=""/>
                                <p class="field-help">&nbsp;</p>
                            </div>

                        </fieldset>
                        <!-- Form Controls -->
                        <div class="form-controls">
                            <button type="submit" class="form-button-colour"><?php echo $this->translate('Save');?></button>
                        </div>
                        <!-- /Form Controls -->
                        </form>

                        <form action="<?php echo $this->url('passwordreminder');?>" method="post" class="standard-form standard-form-small">
                        <fieldset>
                            <legend><?php echo $this->translate('Additional parameters');?></legend>

                            <div class="field <?php if(array_key_exists('email', $formMessages) || !empty($message)) {echo 'field-error';} ?>">
                                <label for="field_4">Field Label</label>
                                <input type="text" name="email" id="field_4" class="textbox" value="<?php echo $configuration['param1'] ?>"/>
                                <p class="field-help">
                                    <?php if(array_key_exists('email', $formMessages)) {
                                        foreach ($formMessages['email'] as $key => $val) {
                                            echo $key . " ";
                                        }
                                    }elseif (!empty($message)) {
                                        echo $message;
                                    } else { echo 'Field help directive goes here';}
                                    ?>
                                </p>
                            </div>


                            <div class="field <?php if(array_key_exists('email', $formMessages) || !empty($message)) {echo 'field-error';} ?>">
                                <label for="field_5">Field Label</label>
                                <input type="text" name="email" id="field_5" class="textbox" value="<?php echo $formData['email'] ?>"/>
                                <p class="field-help">
                                    <?php if(array_key_exists('email', $formMessages)) {
                                        foreach ($formMessages['email'] as $key => $val) {
                                            echo $key . " ";
                                        }
                                    }elseif (!empty($message)) {
                                        echo $message;
                                    } else { echo 'Field help directive goes here';}
                                    ?>
                                </p>
                            </div>

                        </fieldset>
                        <!-- Form Controls -->
                        <div class="form-controls">
                            <button type="submit" class="form-button-colour"><?php echo $this->translate('Save');?></button>
                        </div>
                        <!-- /Form Controls -->

                    </form>
                    <!-- /Standard Form (Small) -->

                </div>
                <!-- /Tab Two -->

            </div>
            <!-- /Block Content -->

            <!-- Block Footer Cap -->
            <div class="block-footer-cap">
                <div class="cap-left"></div>
                <div class="cap-right"></div>
                <div class="content"></div>
            </div>
            <!-- /Block Footer Cap -->

        </div>
        <!-- /Grey Tabbed Block (Full Width) -->

    </div>
    <div class="column-right">

        <!-- Colour Tabbed Block (Full Width) -->
        <div class="block block-colour">

            <!-- Block Header -->
            <div class="head">
                <div class="cap-left"></div>
                <div class="cap-right"></div>
                <div class="content">

                    <!-- Block Title -->
                    <h2><?php echo $this->translate('Account settings');?></h2>
                    <!-- /Block Title -->

                </div>
                <div class="clear-both"></div>
            </div>
            <!-- /Block Header -->

            <!-- Block Content -->
            <div class="block-content">

                <!-- Tab One -->
                <div id="tab-four-one">

                    <!-- Standard Form (Small) -->
                    <form action="<?php echo $this->url('passwordreminder');?>" method="post" class="standard-form standard-form-small">
                        <fieldset id="personal">
                            <legend><?php echo $this->translate('Personal information');?></legend>

                            <div class="field" style="visibility: hidden">
                                <label for="field_20">&nbsp;</label>
                                <input type="text" name="email" id="field_20" class="textbox" />
                                <p class="field-help">&nbsp;</p>
                            </div>

                            <div class="field" style="visibility: hidden">
                                <label for="field_21">&nbsp;</label>
                                <input type="text" name="name" id="field_21" class="textbox" />
                                <p class="field-help">&nbsp;</p>
                            </div>

                            <div class="field" style="visibility: hidden">
                                <label for="field_22">&nbsp;</label>
                                <input type="text" name="surname" id="field_22" class="textbox" />
                                <p class="field-help">&nbsp;</p>
                            </div>

                        </fieldset>
                        <!-- Form Controls -->
                        <div class="form-controls">
                            <button type="submit" class="form-button-colour"><?php echo $this->translate('Update');?></button>
                        </div>
                        <!-- /Form Controls -->

                    </form>
                    <!-- /Standard Form (Small) -->
                    <!-- Standard Form (Small) -->
                    <form action="<?php echo $this->url('passwordreminder');?>" method="post" class="standard-form standard-form-small">
                        <fieldset>
                            <legend><?php echo $this->translate('Password update');?></legend>

                            <div class="field <?php if(array_key_exists('email', $formMessages) || !empty($message)) {echo 'field-error';} ?>">
                                <label for="field_30"><?php echo $this->translate('Current password');?></label>
                                <input type="text" name="email" id="field_30" class="textbox" value="<?php echo $formData['email'] ?>"/>
                                <p class="field-help">
                                    <?php if(array_key_exists('email', $formMessages)) {
                                        foreach ($formMessages['email'] as $key => $val) {
                                            echo $key . " ";
                                        }
                                    }elseif (!empty($message)) {
                                        echo $message;
                                    } else { echo '&nbsp;';}
                                    ?>
                                </p>
                            </div>


                            <div class="field <?php if(array_key_exists('email', $formMessages) || !empty($message)) {echo 'field-error';} ?>">
                                <label for="field_31"><?php echo $this->translate('New password');?></label>
                                <input type="text" name="email" id="field_31" class="textbox" value="<?php echo $formData['email'] ?>"/>
                                <p class="field-help">
                                    <?php if(array_key_exists('email', $formMessages)) {
                                        foreach ($formMessages['email'] as $key => $val) {
                                            echo $key . " ";
                                        }
                                    }elseif (!empty($message)) {
                                        echo $message;
                                    } else { echo '&nbsp;';}
                                    ?>
                                </p>
                            </div>


                            <div class="field <?php if(array_key_exists('email', $formMessages) || !empty($message)) {echo 'field-error';} ?>">
                                <label for="field_32"><?php echo $this->translate('Repeat new password');?></label>
                                <input type="text" name="email" id="field_32" class="textbox" value="<?php echo $formData['email'] ?>"/>
                                <p class="field-help">
                                    <?php if(array_key_exists('email', $formMessages)) {
                                        foreach ($formMessages['email'] as $key => $val) {
                                            echo $key . " ";
                                        }
                                    }elseif (!empty($message)) {
                                        echo $message;
                                    } else { echo '&nbsp;';}
                                    ?>
                                </p>
                            </div>

                        </fieldset>
                        <!-- Form Controls -->
                        <div class="form-controls">
                            <button type="submit" class="form-button-colour"><?php echo $this->translate('Change');?></button>
                        </div>
                        <!-- /Form Controls -->

                    </form>
                    <!-- /Standard Form (Small) -->
                </div>
                <!-- /Tab One -->

                <!-- Tab Two -->
                <!--div id="tab-four-two">

                Two

                </div-->
                <!-- /Tab Two -->

            </div>
            <!-- /Block Content -->

            <!-- Block Footer Cap -->
            <div class="block-footer-cap">
                <div class="cap-left"></div>
                <div class="cap-right"></div>
                <div class="content"></div>
            </div>
            <!-- /Block Footer Cap -->

        </div>
        <!-- /Colour Tabbed Block (Full Width) -->

    </div>
    <div class="clear-both"></div>
</div>
<!-- /Two Column (Equal) -->